package com.onlinevideo.entity;



import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class EmailInfo {

    private List<String> mailboxCollection ;

    private String subject;

    private String content;

    private Boolean isHtml;

    private List<File> files ;

    /**
     * 单收件人无附件形式
     */
    public EmailInfo(String email, String subject, String content, Boolean isHtml) {
        this.mailboxCollection = new ArrayList<>();
        this.mailboxCollection.add(email);
        this.subject = subject;
        this.content = content;
        this.isHtml = isHtml;
        this.files = new ArrayList<>();
    }
    /**
     * 多收件人无附件形式
     */
    public EmailInfo(List<String> mailboxCollection, String subject, String content, Boolean isHtml) {
        this.mailboxCollection = mailboxCollection;
        this.subject = subject;
        this.content = content;
        this.isHtml = isHtml;
        this.files = new ArrayList<>();
    }
    /**
     * 单收件人单附件形式
     */
    public EmailInfo(String email, String subject, String content, Boolean isHtml,File files) {
        this.mailboxCollection = new ArrayList<>();
        this.mailboxCollection.add(email);
        this.subject = subject;
        this.content = content;
        this.isHtml = isHtml;
        this.files = new ArrayList<>();
        this.files.add(files);
    }
   /**
    * 多收件人多附件形式
    */
    public EmailInfo(List<String> mailboxCollection, String subject, String content, Boolean isHtml,List<File> files) {
        this.mailboxCollection = mailboxCollection;
        this.subject = subject;
        this.content = content;
        this.isHtml = isHtml;
        this.files = files;
    }

    public List<String> getMailboxCollection() {
        return mailboxCollection;
    }

    public void setMailboxCollection(List<String> mailboxCollection) {
        this.mailboxCollection = mailboxCollection;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getHtml() {
        return isHtml;
    }

    public void setHtml(Boolean html) {
        isHtml = html;
    }

    public List<File> getFiles() {
        return files;
    }

    public void setFiles(List<File> files) {
        this.files = files;
    }

    @Override
    public String toString() {
        return "EmailInfo{" +
                "mailboxCollection=" + mailboxCollection +
                ", subject='" + subject + '\'' +
                ", content='" + content + '\'' +
                ", isHtml=" + isHtml +
                ", files=" + files +
                '}';
    }
}
